Fixed java code compilation for linux