clean up warnings and make project compile on linux