Fixed Altimeter selection.

Also fixed problems preventing app from compiling and running with NetBeans