Fixed issue compiling through Maven