upgraded netbeans to 7.4. Added static lib flags to linker.