add build warnings for JAVA_HOME, improve platform detection, misc todo notes