Problem and solution for compiling NetBeans on Mac