Reorganize compiler configuration
Fix compilation on Mac Java 6 (closes #102)