In case Apache Ant ever gives you such error:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xD
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Add
<sleep milliseconds="1"/>
right before the javac call in build file and it works like a charm.
P.S. It's definetly one of the trickiest things i have ever seen while working with Java.