compile fixes, tweaks

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>